{
 Pashkevich_Ivan
 19.09.2012
 This program writes Pascal Try-Angle
}
program pascal;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  n, i, j : integer;
  a: array of array of integer;

begin
  readln(n);
  setlength(a,a+1,a+1);
  a[1,1]:=1;
  writeln(a[1,1],' ');
  for i:=2 to n do
  begin
    for j:=1 to i do
    begin
      a[i][j]:=a[i-1][j]+a[i-1][j-1];
      write(a[i][j],' ');
    end;
    writeln;
  end;
  readln;
end.
